package com.guess.study.designpattern.factory.abstractfactory.factory;

import com.guess.study.designpattern.factory.abstractfactory.product.ConcreteProductA2;
import com.guess.study.designpattern.factory.abstractfactory.product.ConcreteProductB2;
import com.guess.study.designpattern.factory.abstractfactory.product.ProductA;
import com.guess.study.designpattern.factory.abstractfactory.product.ProductB;

/**
 * Created by tianran on 2019-06-10.
 * 产品等级为2的具体工厂（有M个产品等级，就应该有M个实现工厂类）
 */
public class ConcreteCreator2 implements Creator {
    @Override
    public ProductA createProductA() {
        return new ConcreteProductA2();
    }

    @Override
    public ProductB createProductB() {
        return new ConcreteProductB2();
    }
}
